
public class maintest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		double[] vVec = {1,2,3};
		double[] uVec = {.5,.5,1/Math.sqrt(2)};
		Vector u = new Vector(uVec);
		Vector v = new Vector(vVec);
		System.out.println(u.dot(v));
		System.out.println(v.projectionOnto(u));
		
	}

}
